package security;

import java.io.IOException;

/**
 * Interface for communication.
 * 
 * @author Lukas
 *
 */
public interface Channel {
	/**
	 * Sends a message.
	 * @param message The message.
	 * @throws IOException
	 */
	void send(String message) throws IOException;
	/**
	 * Waits for an incoming message and returns it.
	 * @return The message.
	 * @throws IOException
	 */
	String receive() throws IOException;
	/**
	 * Shuts down the connection.
	 * @throws IOException
	 */
	void close() throws IOException;
}
